package top.boycharse.blog.dao.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import top.boycharse.blog.dao.bean.Label;

import java.util.List;

@Repository
public interface LabelRepository extends JpaRepository<Label,Integer> {

    Label findByLabelName(String name);

    List<Label> findByUser_UserName(String username);
}
